make this gem rails-friendly