parse packageinfo and moduleinfo