wifi socket is in separate file