start parsing types, and cleanup.