added some handy logging calls