cleanup for test
kinda working inference engine