persist now works, needed proper directory