fixed index to include socket demo