added periodic timer in case pubs are missed