added logging setup