socket errors parsing added