super simple and robust parser