ensuring no duplicate events by using a simple clock. fixes #5