before heroku
reg controller