changed way to specify credential for EMR