exposed method for flask