initial setup of files with socket example