quick hack based on nm network manager