fix several warnings in CMD check