add env arg to our popen constructor