added the .proxy method for use with inner functions