added env definition to the name of instance
fixed issue where couldn't spawn instance
merge