checkpoint for improved API error handling