added additional debugging