make the flask obj available seperately