effects: added passing of effect environment around