sync error handling