made some private functions public