socket type moved out of class