proper SCRIPT handling