add create deactivate detect