updated changes for new chef11 syntax, and updated for code that actually makes sense