also, `api_login_as` sets up the json format, so you can drop all of that