add rule handler