tested on windows partition and made changes to run_cmd