updated to script refs