added argument for retries. not implemented yet though