move UDP socket initilization to run method