added callback for long running tasks