clean up server app syntax