refactor : replace RetryOutException  to IOException, add a String inputed methods.