added currfile and filemod