added facility to read external files