introduce emit on mechanism
Merge pull request #2 from yapcheahshen/master

introduce emit on mechanism