add id pattern support