made sure we only set up a genv if we actually find one