> Well, which pieces are you thinking of moving? The very most of the <%INIT>...</%INIT> part. I'll start with the line package HTML::Mason::Commands; in the top of the file, so just moving things to a sub should be a bit crude, but it should work. -- Spell checkers are for wimps (please send feedback on all typos)