remove debug mode - broken now anyway!