modified the environment method to include/merge stash data