add before script