The handler only needs to pull in a relay as long as gpio.2 is low. Anyhow it works just fine now. Reread datasheet over and over and missed a couple registers that needed set.