fix var-sym
fix passes-opts handling
update cached env