error checking
Build proxy
remove junk