made a start on persistence