initial packet parse