get rid of double compilation of proto