changed interface of message resolver