server code clean