fixed tellg weirdness...