add: FileApi & rulesToString