Added switch pool by name, fixed bug in persist methods