main: check for parser creation for writing