Update adapterEngine.js