fixed a bug causing read dict parameter error; unify log format
added segment mode setting interface