added functionality to get elastic ip addresses