refactored for chef 11 compat