wget: reorder functions, no code changes