latest adapter.js file
small bug fix