starting to mimick the existing flask app a little