adds some more structure to server skeleton