move persistence to configbuilder