further work on the json responses