split cli part from functionality
v0.1.3