add activate and deactivate hooks for targets