slightly fixed implementation for parsing_c, but still not production ready