version that stopped working for some reason
working version
all working, before refactoring
prediction works reliably, device prediciton works, file xlsx with cases