convert to new links format