everything works now

used the request package.
reorganized things too.