fixing stuff in the flask part thats all broke 5