managed mocha to work