why not use const_cast here, copying of manifest does not seem to be chip?