Fix script reference errors
Edit socket configuration