moved type parsing
moved function parsing
moved structure parsing