change order of package checks