added ability to open files