fixing config handling