moved some system event definitions
minor cleanup to event wrapper
added some thread tracking stuff
added some testing crap