fixed bug
tweaks for heroku