fixed all sudo cat <<EOF to cat <<EOF | sudo tee