added return value to read from proxy