fix scan numbers, start/end and no cores