check_mandatory debug version, incomplete