organize server command into phases