almost there, remaining problem doing the nested render in link expansio, need to refactor build_link setup