changing way of copying hubs keys and master IP to clients