is it possible to control the file name ? and change it with different name ? another issue - waitFor is deprecated, should be changed to waitForTimeout