added sanity check / debug helper