trying to add logging