setup proxy structure