fix main.rb calls to Server