move check manifest into loop