inspired by flask. not to be taken seriously