if send_error then rename input file