update callback functions

should prevent additional compatibility issues... fixes #17