started coding the core, doesnt really work yet though