before script