better place to put this? routes.js perhaps?