move netrw setting out of functions