fix server.rb errors