add debug method to Skeleton.cs