adding save to server.rb