renaming files preparing to send it to wp