added beginning logging