move netrw settings out of functions