initialize AWS only if defined (works around init issues)
fix test_email