fixed problem with retrieving config