decreasing dependence on json_post