sync error-handling