if the line coming in doesn't parse, we won't have type, etc so move the usage up them up into the if to avoid explosions