resolved publisher looping bug thanks to boldminded