check for sscanf errors