added basic logging support