fixes for invite.sh including datecookie and echo-to-printf conversion