update code and add new script files