add proto file type detection