aimlessly fuck around until this is compatible with rails >= 3