modify for local command-line use