beginning of binprot