added env option, to run more types of programs