refactor setting deploy