fixed some problems with errormessages. added a couple of assertions, added a TODO to print a message in case of multiple versions in same second