Rewrite the server without frameworks