added preliminary functions for namespace management
updated getRequest to optionally return json