select_network method and other small things