added namespace support for stubgenerator