fixed upload, added HasPackage