core functions for testing the proxy