cleaned up logging setup