some server code and makefiles for both