added IOException, and aws access keys