updated how server runs