check strictly and handle parse errors