put processtype staements in proc block
Merge pull request #2 from jeffakolb/master

put processtype staements in proc block