removes excess server code