fixed parser and writing server