Such was the practice of the monk in Dogen’s story. The master, who is not identified, saw the futility of his practice, and said it was due to a tenma-hajin. Tenma refers to demons that cause hindrances to those who follow the Buddhist Way; this particular demon’s name was Hajun (Papiyas in Sanskrit). Upon examination at the insistence of his master (“Open the box and look inside!”), the monk was able to see the potential danger of his practice.
Today, we scarcely need to discourage practioners from the worship of images and relics. If anything, based on the resistance to chanting, prostrations, and other forms of devotional practice often seen among Western newcomers and adepts alike, we probably need to encourage a little more reverence toward the Three Treasures. Our modern-day resistance is likely rooted in egocentric attachments that are probably best abandoned. While it may not be the path to enlightenment, Dogen acknowledges the merit of the practice. Dogen, it seems, sought a middle way between abandonment of the practice and dependence upon the practice.
--from Water Seeking Water