wrapping the configuration up in a function that creates it; will soon try to minimise the number of globals this way