move addedRules inside parser setup

always comes is as empty array