basic logging, startup and shutdown