some patches to get the server running correctly.

ask in the chat if you are dubious.