add block for logging