added persist-entity flag step 1