convert stubs into interfaces