added readInternalC function