moves settings api into app.run