event stuff works and doesn't crash