now applies the diff to the environment while running