fix newline additions when saving
cache sources on load and take advantage of that in Completions