fix private method on connect