standby test and fix some bugs