removed custom flask class