finished port to docopt