hooked into rails