changed checkerror to not be exported as it is always handled internally and translated to a regular error