minor cleanup for khmer protocols