generate for fd and trying to make r work on heroku