changed persistence to make use of constants in configuration