better socket sync
Bugged version