fix `delim` name and introduce `sep` argument