work with rails instead of rackup