make sure to unexport some functions, fix #2872