this debug functions should not be in public interface