added logging facility