merge xml setting function, and prepare to add loginLog function