brought hs scripts program into build (very messy)