cleaned up eventqueue code, added engine events