fix output file
fix copy