add extra debugging