still workingon socket server approach