change functions to work with manifests(PCR) and fix creating MLEs in recipe