inversed xml loader so that parameters are correctly initialized