server code reduction