add flux directories and dispatcher to generator tempaltes