added check for manifest existence