5.29 from notebook,add department log,fix some bugs