changed the pkg command to make it easier to parse and updated the parsing lines