breakup server.rb across two files(server.rb & readloop.rb)