get the filename when working in local mode