add some bits to create the log directories