added logging features