debugging
an idea for retrying
retry with logging and timer