fix visibility warnings in main crate (#2044)
fix visibility warnings in script crate (#2044)