Rewrote all the architecture, its compiling but smts.test is completely broken for now.