parse interfaces and fields etc