updated for new docopt syntax