made events accessable in script