refactor configuration default and fixed
refactoring configuration