expanded better debug print