added try/catch around all callbacks, fixed IE