abstract out proxification