fixed scripts, removed using ref causing build errors