fixing configuration parsing