add better debug output