add a bit of logging