consistent and defined version numbers
started to separate static events from the main polling loop