fixed so that config can be shared between client and server