debug prints for piece logging