working the stock split mechanism into the scripts