reorganize deprecations
fix formatting in socket.jl