added some more debug tools