fixed stackdump, committing so david can look at my logic