split references with a newline