pass config to client-side