rename type and extract interface starts