newdomain : removed set -e and append to first line instead