almost there
added pssibility to open files via terminal