add logging to util