merging scripting and cli