add socket init on load