read -r is needed to handle reading lines with escapes intact