separation server code