add variable callbacks
Merge pull request #3 from mitzerh/develop

add variable callbacks