updates for heroku deployment
moved conversion of eviron to float
load json from request.data