quickly hack together the server part