added some basic logging