Main.scala implementations for server basics