keep a reference to the server module so we can monkey-patch it from outside