added code for interactively listing links
added TODO