use cmdArgs and filemanip