correctly parse interfaces definition and usage
fix