use checkall to ensure error is captured