add slave server support;
Optimize performance;
fixbugs.