add cc_line and to_line to go with from_line