change generators and parsers for fixing strange newlilne and add tests