add extra logging