updated buildPkg