made unit test versions of functions public