add debugging methods