removed "calling delegate" prints and wrapped algorithm run with try catch