fix: PcosError was a checked exception
support command-line invocation