remove log4z, fix bugs.