add rules xml