update registernamespace to actually register a namespace