adding some decent logging