attaching callback to VMX