rewrote incoming data parsing, now with pop