add send proxy redirect function