Fixed for 4.2

4.2 changed the way the views and environment worked, this is now how you access the shared data