adjust build for mocha