prepping for logging