make joinnetwork for safe for deploy