using cli-like functionality