use dict.get for delim and pos in case these are mistakenly not provided and default to '|' and 0, respectively