fix 2 typos, add derived defaults and minor fixes when scripts run at different times and sessions.