updated flask endpoints