added support for loading text and binary files. html files not supported yet