allow to pass application data to callbacks