few fixes for proto