registering class for 'event' subtype