restructure helper scripts