Fix networking setup

heredoc would be better I think