changes to handler.js