set cores as env var