add currentFile method