net and refactoring