added direct connection mode