enhanced debugging