bind shared function to the context object.