adding session persistent save to plugins.