add flux server-side so we can use it client-side