modified some of the radius code