added example code for core control