fixed a strict warning
tweaked a form alter to account to a badly behaving salesforce form, and made some functions more tolerant of missing data.