tweak to work with latest flask tarbell