rename files
santitize response object and error status