cleanup logging and set the default values