modified function is_service_enabled in functions file