added Option[Credential] to proxy