refactor more configure