added logging module logging