fixes #7, allow overrides to be a function so that default config can be augmented rather than overwritten