updated assert to use error so i could get stack dump
Made stack save on manual edit