remove dup code
the cloud provider is now optional