removed debug mode string pointer, as it was unsafe.