allow passing custom service class in run_server