added s3 processbuf and validatebuf with assembly