debugging hell
stats is working, reading from file is working