first worked version ready for production test