edit file before send to server