adding support for reading file