some work on reconnecting; fixed undefineds in links