added postactivation hook var management