add utility for binding flags and building api server clients