add update files and some bugs.