use run_as_service branch