output file and rename req param