make config a server field, mock object stubs for tests