some svg flattening