refactor out proxy params