After rethink of flsuhes and recursive generation of pathways