implemented enable/disable hooks