fixed a MAJOR interal problem; a DAY of debugging