fixed lookup of aws keys