remove some internal types from public API