broken code - extend-env-recur is killing us