adding an "append" and some parrts of the new agent