of course it worked on your local machine, because that's not how the real world works. 3 hours of debugging later and it's still not fixed