[fixes+enhancements] fixed BUILD and added EventEmitter to the parser