fixing some consistency checking stuff