Never mind figured it out. There was a problem somewhere in that sketch. basically started from scratch again. merged the W5100 MQTT client gateway sketch and the relay sketch. then referred to here for serial MQTT syntax. Hope anyone else thats struggling finds this info useful.