initial try to implement multi-eqns; fixed detection of skipEnvironment