improved doo detection