moved error specs into separate #error_check