old hacks for Glacier and EC2