Rename res to response
add dump for file