add some fields to the state record