added connectedscenes var and added safe checks to it
getting ready to link scenes together