add validatefilename method
rafactoring
Merge remote-tracking branch 'origin/wmy_local'