better config handling