update script and document for developers