add support for nested quotes