check parameters in publish