update validate
update doc
fix ac bug