switch to using logging module for output