stopped at handling external type declaration