changes to rails-api