fixed duplicate response error and authentication with a handler
docs