remove some obsolete code, and UPDATE config.ini