added config
added checks
only publishing if subscribers are present