sync with upstream 1.6.0.0
add update script
more chmox