couple of bugs

if year is not defined, save to state straight off

if there is an error with the put, the dump the correct .text
value (from putres, not from the get res)