putting directives into modules, relinking in index