store settings in the application context to prevent
it from getting messed up between threads