[minor] add target rewriting option in action generator