add plato and fix some warn