make things internal

will gradually make them public as need be