moved off rails app for simplicity