added guardian publish functionality