added proxy flag, fix example runtime error