add support for reading from a file like object.