i copied this from app.coffee, but i can remove