fixed incompatibility with system getline()