added support for controlling when events begin/end, also fixed a bug with random events