updated changes for adding gpio pins for switch control