more text reading fixes