refactor part rails behavior to rack app
mv cap files into cup project