flags client is now a singleton