parse quotes better