fixed bug causing loop to fail
minor fixes ti ip and topics