fixed bug in retry loop, added local cache of existing previous node
fixed bug in retry loop, added local cache of existing previous node