moving logic to construct manifest from remote to manifest class