moved from mostly html responses to mostly json responses