changed ref to script