adding boto class for error handling