parse rules