Fix endpoint creation.

This works for no default region and 'most' others. needs work, but
works for now.