fixup exit arguments and add pirate