improved documentation, publishStatusKey defaults to null