Version working with 'naive' splitting
coming back to the working version....
everything working now