some updates to localpkg