added optimist
added port option
instrument url from command line regexp
better filename from url
better filename from url