problem with % in file name fixed