added a possibility to open files