add debug dump method