safer and better quote depth limiter