better emitted values parsing