added ability to extend maprules