update of Makefiles
new version state machine code