server.c boilerplate