change proxy logic