gandalf protocol parser by ranch.