directive subgenerator v1 finished