better error messages for activate and deactivate