clean server side