make non-rails compatible