added the number of schedulers config flag and modified some of the event set function calls in event dispatcher. some sections of coast forward function will need change for event set calls.