get --> get_instance
move api_map away from module namespace
removed global module vars