debug: use assert's when approperiate