some bugs have been fixed on the input in the server.h. ifndef has been added on server.h