updated echo calls to fix newlines.