update example
add emitter + debug index + clean