refactored puppet code