adds logging messages