refactor some of the RE related tools in the extending