allowance for multiple rules per table and extra mappings added