work on return object to namespace