before script additions