refactored check agreement listener
dependencies updated