parse packages