anchor.diff:    MaxConnections = misc:get_env(?MODULE, max_connections, Opts),
     QueueSize = misc:get_env(?MODULE, queue_size, Opts, MaxConnections),
     HooksWeight = misc:get_env(?MODULE, weight, Opts),
  -  hooks:install({terminal, connected}, HooksWeight, {?MODULE, connected}),
  +  hooks:install({terminal, connected}, HooksWeight, {?MODULE, connected}, [terminal]),
     hooks:install({terminal, disconnected}, HooksWeight, {?MODULE, disconnected}),
     hooks:install({terminal, info}, HooksWeight, {?MODULE, info}, [terminal]),
     hooks:install({terminal, raw_data}, HooksWeight, {?MODULE, raw_data}, [terminal]),
  
positive.code:   hooks:install(get, HooksWeight, {?MODULE, get}),
    hooks:install({?MODULE, get}, HooksWeight, {?MODULE, get}),
    hooks:install({?MODULE, set}, HooksWeight, {?MODULE, set}),
    hooks:install({replica, connected}, HooksWeight, {?MODULE, connected}),
    hooks:install({replica, disconnected}, HooksWeight, {?MODULE, disconnected}),
    Args = get_opts(Opts),
    '_debug'("connection options: ~w", [Args]),
  
negative.code: -export([json_enc/1]).
  -export([pre_json/1]).
  %% hooks
  -export([connected/5]).
  -export([disconnected/3]).
  -export([info/5]).
  -export([raw_data/5]).
  