added expection handler block to handle unsupported pins