reading config from xml (not tested)