updated runCallback to include error message