sky and refactor