moved cli helper outside framework