add debugging