start work on logging handler