turned server into a boilerplate