basic flask wrapper