added option for allowed cores