finish scheduler/engine/eventqueu + tests