refactored service initialization for gns-worker