err as first parameter in createClient cb