added methods for separating packets into data and extended header