updated to latest logging style