implements restore method.
add method comment.
change for upload method, chunked.