extracting persistence options
removing delegate from sessions
use class persistence_options when init document
adding proxy for better persistence_options on class level