refactor doc
copy from s3tiger