added basic logging facility