cleanup proxing code