implement --config and --config-write arguments for server and crawler