#12 fix race condition to register events
#4 remove srcType option until better fix
release version 0.4.0