trying to get log working