change requests to json
clean up configuration