add more logging
use config to disable rotation boot
fix mock in test