can now create from namespace
 refactor resolve