use new aws and analysis gem