fix functions to get AWS keys