added socket server ready for magic