subcommands
copy implementations over to single file
move implementations to functions
WIP