added canOpenFile method