fix broken monkey-patch style createClient