refactor config bits