update callback api
Merge pull request #3 from Sinbadsoft/add_callbacks

update callback api