cmd line utility initial working version