moved default output file name setting to main
test