also don't process lines if they're not long enough to be valid