added callbacks to 'kraken' example