moved determination of cores to helper class and modified the metadata values