added ability to specify namespace for objects created