implemented Cmd.QUERY_LINKS