modified fp_line and circle parsing