complete the configuration management component and fix some bugs