further improvements to typing quotes