cmt partly server side + almost complete cli side