having problems with openfile