extract interfaces from packages