make addRule render nested rules fixes #20