fixing stuff in the flask part thats all broke 3