boilerplate for server side