refactor config for testing