tweaks to proxy in java template