removed dumb wget remap
removed a lot of unused functions