trying to figure out why i get core dumps on asserts