listening and emit for raw and processed data