debug fixes
conversion to c-strings