improved handling of cores
minor debug change