make some methods/structs internal