core of the server

just the front end for the graph remains to be done