BUGFIX: don't require env if its not needed