In fact now I? thin about it I wonder if you should be using "local" and "remote" internally rather than "to" and "from".