backend ready to debug

finished basic mod
.