server code boilerplate