added dual core support