move packet parsers into parsers.js