Moved ns objects common method into baseobject