expiration fixes/adjustments
added -name and -setcookie to the script