lots of debugging , nearly got everything working