only set CORES if it doesn't exist