updated persistence to work with both ext and st2