fixed a few file issue which prevented the server from running properly