set path, filename,key