updated to use the internal logger @cfurrow