fix configuration issues, in particular backwards compatibility + add config unit tests