added debug conditionals for missing warning