add external pin reset function