cleaned and added starting server code