isn't this wrong since the new code calls deprecated code now? (the `Server` class is marked as deprecated)