basic functions in RCTool.