get the hierarchy right: packages have types, app has packages