fix lib/cmd