added callback to handleinterrupt