added event api support