fix field assignment null bug
remove console printing code
convert string proto