support case where env is None
Merge pull request #58 from cameronbraid/patch-1

support case where env is None