refactor libproxify