well for what it's worth... i never got this code to work. i ended up using the content handler api, but it doesn't work on version 4.2.... so it doesn't really meet the requirements of my project. I am looking at calling the CodeModuleManager for version 4.2, but it doesn't look promising.