No return statement on flags.unset()
Strip meta fields from export. Refactor all model loading to not reload models every time they are needed