method hook with first idea for activating the hook based on a boolean property
improvements on dsl