beginning to debug logic in proxy after refactor.