better logging on boot and restart