add position support in rule creating