made proxy type a config param and not hard-coded