add proto id in schema; fix schema parsing for ids