added is_service_active function