install and publish rules