add logging capability