the 2nd parameter is to add logging. We need to figure out a way to hook into the logging for pub.