fix non-public APIs warning