improve openfile