fix command line parsing bug
index on linkstats(target); should speed up redirect handling