$client_enabled is a local var