working primitive event system