minimal dirty cli implementation