adding some logic in handler and file update. NPM updrade