added mc.cores option to set number of parallel cores explicitely