rename :credential to :proxy to be consistent with other code