added ability to open file