updated to include region as an arg and using env variables for keys