even more efficient demultiplexing