this refs
commend out local termination
add edge weight
print edge weights