make valid() stronger in clipperz format