Manifest loading algoritm