server: fix config handling