fish function for proxy