retry & error handling for attune errors