abstract config to be both on roots and client side