update pkg location check