script for proxy