update base rom and fix some bugs