adding a onMeshSwitched