fix part cloning
test for c++11 features
externalize the state generators
few cosmetic changes to the externalisation